//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using OpenLS.Drawing.UI.Internals;

namespace OpenLS.Drawing.UI
{
    public class ColorGrouping : GroupDescription
    {
        public override object GroupNameFromItem(object item, int level, System.Globalization.CultureInfo culture)
        {
            if (item == null)
                return UIStringTable.DefaultColor;
            if (item is ThemeColor)
                return UIStringTable.ThemeColor;
            if (item is SRgbColor)
                return UIStringTable.StandardColor;
            return UIStringTable.Other;
        }
    }
}
